package com.financial.transactionhistory.controller;

import com.financial.common.core.domain.R;
import com.financial.transactionhistory.vo.FinancialDashboardVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.financial.common.annotation.Log;
import com.financial.common.core.controller.BaseController;
import com.financial.common.core.domain.AjaxResult;
import com.financial.common.enums.BusinessType;
import com.financial.transactionhistory.domain.FinancialDashboard;
import com.financial.transactionhistory.service.IFinancialDashboardService;
import com.financial.common.utils.poi.ExcelUtil;
import com.financial.common.core.page.TableDataInfo;

/**
 * 财务概览Controller
 *
 * @author ruoyi
 * @date 2025-06-16
 */
@RestController
@RequestMapping("/financial/dashboard/overview")
@Api(tags = "财务概览相关接口")
public class FinancialDashboardController extends BaseController {
    @Autowired
    private IFinancialDashboardService financialDashboardService;

    /**
     * 查询财务概览列表
     */
    @PreAuthorize("@ss.hasPermi('financial:dashboard:list')")
    @GetMapping
    @ApiOperation("查询财务概览")
    public AjaxResult selectDashboard() {
         FinancialDashboardVo financialDashboardVo= financialDashboardService.selectDashboard();
        return AjaxResult.success(financialDashboardVo);
    }
}
